#include "EditorPageModel.h"

#include "Window/EditorWindowGroupModel.h"

void REditorPageModel::NotifyFocusedObjectChanged()
{
    if(REditorWindowGroupModel::Get()->GetFocusedPage()==this)
    {
        REditorWindowGroupModel::Get()->NotifyFocusedObjectChanged();
    }
}

bool REditorPageModel::HasUnsavedData() const
{
    return LastOperationBeforeSave != GetLastOperation();
}
